#include "TA_TYPES.H"

void EAError(int ret, int line, char* str);
void srfDraw();
int ld_load_grid_module(hmx_environment* buffer, char* file, hmx_environment* env, hmx_bitmap** bitmaps, int size);
int TAGridBmpCreate();
int TAGridCreate();
int GridInitSub(char* path, map_info* pInfo);
int TAGridInit();
int BkgBmpCreate_TA();
int BkgBmpDelete_TA();
int BkgCreate_TA();
int BkgDelete_TA();
int LoadPicBmp();
unsigned int CreatePic();
void SetPic(int mode, int round, int zurasi);
unsigned int TA_EACreate();
void DeleteEA();
void DrawTA();
unsigned short GetLFont(char c);
unsigned short GetSFont(char c);
void TimeToAsc8(unsigned int Time, char* p);
void TimeToAsc9(unsigned int Time, char* p);
void PrintTotalTime(int mode, unsigned int b);
void PrintRoundName(int mode, int round, unsigned int b, int grid);
void PrintZoneNo(int mode, int zone);
void PrintZoneSelect(int mode, int round, int zone);
void PrintZoneRecord(int mode, int round, int zone, int rank);
void PrintZoneRecordAll(int mode, int round, int zone);
void PrintMenu2(int mode, int cur, unsigned int b);
void PrintRank(int mode, int rank, unsigned int b);
void PrintRankName(int mode, int ranky, int rankx, char c, unsigned int b);
void Tenmetu();
int TAMove();
